import { NavBar, Space, Toast } from 'antd-mobile'
import { CloseOutline, MoreOutline, SearchOutline } from 'antd-mobile-icons'
import React from 'react'

import './App.css'
import { useNavigate } from 'react-router-dom'

function App ()  {
  const navigate = useNavigate()
  const back = () =>
    navigate('/')
  

  return (
    <>
      
        <NavBar onBack={back}>标题</NavBar>

    </>
  )
}

export default App